<% modelname = User.human_name %>
<% form_for(@user, :url => account_path) do |f| %>
  <%= f.error_messages %>

  <table class="form_table" cellpadding="0" cellspacing="0" style="border-top: 0px;">

    <caption style="border-bottom: 0px;">
      <%= "#{controller.action_name == 'edit' ? t(:update_x, :x => modelname) : t(:create_x, :x => modelname)}" %>
    </caption>

    <tr>
      <td class="label"><%= f.label User.human_attribute_name(:login) %></td>
      <td><%= f.text_field :login %></td>
    </tr>

    <tr>
      <td class="label"><%= f.label User.human_attribute_name(:email) %></td>
      <td><%= f.text_field :email %></td>
    </tr>

    <tr>
      <td class="label"><%= f.label User.human_attribute_name(:password) %></td>
      <td><%= f.text_field :password %></td>
    </tr>

    <tr>
      <td class="label"><%= f.label User.human_attribute_name(:password_confirmation) %></td>
      <td><%= f.text_field :password_confirmation %></td>
    </tr>

    <tr>
      <td class="submit" colspan="4">
        <%= f.submit controller.action_name == 'edit' ? t(:update) : t(:create) %>
      </td>
    </tr>
  </table>

<% end %>

